home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / iso9660 / mail / pine / imap.arc / text0097.txt < prev    next >
Encoding:
Text File  |  1993-07-02  |  1.1 KB  |  31 lines

  1. Adam -
  2.  
  3.      Applications that use c-client have the problem solved for them.
  4.  
  5.      What they do is instead of remembering the message number, they remember
  6. the message cache element from mail_elt().  For each time you remember the elt
  7. (e.g. by storing it on a window's property list), you increment its lock count
  8. (elt->lockcount).  When you are finished with a remembered elt, you call
  9. mail_free_elt(), which decrements the lock count and frees the elt only if the
  10. lock count reaches 0.
  11.  
  12.      The message number can then be accessed by elt->msgno.  It is kept
  13. current in spite of expunges.  If elt->msgno is 0, that means that that
  14. particular message has been expunged and is now an orphan.
  15.  
  16.      This is precisely why the message number is in the elt, and why elts have
  17. a lock count.
  18.  
  19.      Your workaround of deferring expunge until close is not guaranteed to
  20. work, because it is perfectly possible that messages will get expunged without
  21. you issuing an expunge yourself.  This doesn't happen much yet, but forewarned
  22. is forearmed.........
  23.  
  24.      Unique ID's are going to be added to IMAP to support disconnected use,
  25. but they aren't there yet.
  26.  
  27. -- Mark --
  28.  
  29.  
  30.  
  31.